algorithm-based study medication